package ltd.newbee.mall.dto;

import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.annotations.DynamicUpdate;

/**
 * @ClassName: SellDTO
 * @Description: 销售DTO 销售数据传输对象
 * @Author: Emily
 * @Date: 2021-09-03 11:01
 * @Version 1.0
 */

@Setter //生成set方法
@Getter //生成get
@RequiredArgsConstructor //生成有参构造器
@DynamicUpdate //自动更新时间
@ToString //测试时使用，上线后删除
public class SellDTO
{
    /** 商品Id */
    private String goodsId;

    /** 数量 */
    private Integer productQuantity;

    public SellDTO(String goodsId, Integer productQuantity)
    {
        this.goodsId = goodsId;
        this.productQuantity = productQuantity;
    }
}
